package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 维修任务对象 bus_repair
 * 
 * @author ling
 * @date 2024-07-18
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BusRepair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 删除标识 */
    private String delFlag;

    /** 创建者ID */
    private Long createUser;

    /** 更新者ID */
    private Long updateUser;

    /** 任务编号 */
    @Excel(name = "任务编号")
    private String taskCode;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 发现时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发现时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date discoveryTime;

    /** 整改前照片 */
    @Excel(name = "整改前照片")
    private String taskImage;

    /** 整改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "整改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date rectificationTime;

    /** 整改后照片 */
    @Excel(name = "整改后照片")
    private String rectificationImage;

    /** 复核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "复核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkTime;

    /** 复核后照片 */
    @Excel(name = "复核后照片")
    private String checkImage;

    /** 任务状态 0 未整改 1 已整改 2 已复核 */
    @Excel(name = "任务状态 0 未整改 1 已整改 2 已复核")
    private String taskStatus;

    /** 备注 */
    @Excel(name = "备注")
    private String repairDesc;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("delFlag", getDelFlag())
            .append("createUser", getCreateUser())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("taskCode", getTaskCode())
            .append("taskName", getTaskName())
            .append("address", getAddress())
            .append("discoveryTime", getDiscoveryTime())
            .append("taskImage", getTaskImage())
            .append("rectificationTime", getRectificationTime())
            .append("rectificationImage", getRectificationImage())
            .append("checkTime", getCheckTime())
            .append("checkImage", getCheckImage())
            .append("taskStatus", getTaskStatus())
            .append("repairDesc", getRepairDesc())
            .toString();
    }
}
